<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_EN" lang="en_En">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script src="<?php echo base_url()?>js/jquery-1.6.4.min.js" type="text/javascript"></script>
		<link rel="stylesheet" href="<?php echo base_url()?>css/styleadmin.css" type="text/css"/>
		<title><?php echo $title ?></title>
		<base href="<?php echo base_url()?>" />
	</head>
	<body id="client-list">
		<div id="wrapper">
			<div id="header-wrapper">
				<?php include_once('include/header_admin.php') ?>
			</div>
			<div id="content">
				<h2>New client</h2>
				<div class="create-client-form">
					<div class="create-client-form-error">
						<?php echo validation_errors(); ?>
						<?php
							if(isset($errorArray)){
								foreach ($errorArray as $value){
						?>
							<p><?php echo $value ?></p>
						<?php
								}
							}
						?>
					</div>
					<?php echo form_open('admin/create'); ?>
						<div class="create-client-form-left">
							<fieldset title="Husband's account information">
								<legend>Husband's account information</legend>
								<div class="input-item">
									<div class="input-item-left">
										<label for="hus-firstname">First Name</label>
									</div>
									<div class="input-item-right">
										<input id="hus-firstname" name="hus-firstname" type="text" value="<?php echo set_value('hus-firstname'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="hus-lastname">Last Name</label>
									</div>
									<div class="input-item-right">
										<input id="hus-lastname" name="hus-lastname" type="text" value="<?php echo set_value('hus-lastname'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="hus-username">Username</label>
									</div>
									<div class="input-item-right">
										<input id="hus-username" name="hus-username" type="text" value="<?php echo set_value('hus-username'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="hus-email">Email</label>
									</div>
									<div class="input-item-right">
										<input id="hus-email" name="hus-email" type="text" value="<?php echo set_value('hus-email'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="hus-password">Password</label>
									</div>
									<div class="input-item-right">
										<input id="hus-password" name="hus-password" type="password" value="" />
									</div>
									<div class="clear"></div>
								</div>
							</fieldset>
						</div>
						<div class="create-client-form-right">
							<fieldset title="Wife's account information">
								<legend>Wife's account information</legend>
								<div class="input-item">
									<div class="input-item-left">
										<label for="wife-firstname">First Name</label>
									</div>
									<div class="input-item-right">
										<input id="wife-firstname" name="wife-firstname" type="text" value="<?php echo set_value('wife-firstname'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="wife-lastname">Last Name</label>
									</div>
									<div class="input-item-right">
										<input id="wife-lastname" name="wife-lastname" type="text" value="<?php echo set_value('wife-lastname'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="wife-username">Username</label>
									</div>
									<div class="input-item-right">
										<input id="wife-username" name="wife-username" type="text" value="<?php echo set_value('wife-username'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="wife-email">Email</label>
									</div>
									<div class="input-item-right">
										<input id="wife-email" name="wife-email" type="text" value="<?php echo set_value('wife-email'); ?>" />
									</div>
									<div class="clear"></div>
								</div>
								<div class="input-item">
									<div class="input-item-left">
										<label for="wife-password">Password</label>
									</div>
									<div class="input-item-right">
										<input id="wife-password" name="wife-password" type="password" value="" />
									</div>
									<div class="clear"></div>
								</div>
							</fieldset>
								
							<div class="client-submit-wrapper">
								<input id="client-submit" type="submit" value="Submit" name="client-submit" />
							</div>
							
						</div>
						<div class="clear"></div>
					</form>
				</div>
			</div>
			<div id="footer-wrapper">
				<?php include_once('include/footer_admin.php') ?>
			</div>
		</div>
	</body>
</html>